package com.bweab.service.impl;

import com.bweab.dao.api.UserDepositDormitoryEnDAOInterface;
import com.bweab.dao.impl.UserDepositDormitoryEnDaoImpl;
import com.bweab.pojo.en.UserDepositDormitoryEn;
import com.bweab.service.api.UserDepositDormitoryEnServiceInterface;

import java.util.List;

/**
 * 三表查询服务
 */
public class UserDepositDormitoryEnServiceInterfaceImpl implements UserDepositDormitoryEnServiceInterface {


    //UserDepositDormitoryEnDAO创建
    UserDepositDormitoryEnDAOInterface userDepositDormitoryDao=new UserDepositDormitoryEnDaoImpl();
    /**
     *
     * @param userId 用户id
     * @param page  用户查询
     * @param pageSize 用户页面大小
     * @return 返回结果是一个集合
     */
    @Override
    public List<UserDepositDormitoryEn> getUserDepositDormitryAll(int userId, int page, int pageSize) {

        List<UserDepositDormitoryEn> userDepositDormitoryEnList =userDepositDormitoryDao.getUserDepositDormitryAll(userId, page, pageSize);

        return userDepositDormitoryEnList;
    }
}
